package IC.AST.nodes;

import IC.AST.*;

/**
 * a primitive type - int, boolean, or string
 */
public class PrimitiveType extends Type {
	private int kind;	// the primitive type kind, from sym

	/**
	 * @param kind the primitive type kind, from sym
	 * @param line the node line number
	 * @param column the node column number
	 */
	public PrimitiveType(int kind, int line, int column) {
		super(line,column);
		this.kind = kind;
	}

	/**
	 * @return the primitive type kind, from sym
	 */
	public int getKind() {
		return this.kind;
	}

	public Object accept(Visitor v) {
		return v.visit(this);
	}
}
